﻿<?php 
    class Database {
        var $host;
        var $username;
        var $password;
        var $dbname;
        var $connection;
        
        function openConnection() {
            $this->connection = mysql_connect($this->host, $this->username, $this->password) or die("Database Error");
            mysql_select_db($this->dbname, $this->connection);
        }
        
        function closeConnection() {
	        mysql_close($this->connection);
        }
    }
?>